package com.cjx.admin.dao;
  import com.cjx.admin.dto.AdminRoleDTO;
  import com.cjx.admin.entity.AdminUserRoleEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  import org.apache.ibatis.annotations.Param;
  import org.mapstruct.Mapper;

  import java.util.List;

/**
 *  DAO 接口
 *
 * @author : cjunxian
 * @since 2021-03-11
 * @version 1.0
 */
@Mapper
public interface AdminUserRoleMapper extends BaseMapper<AdminUserRoleEntity> {
  /**
   * 根据用户id获取用户角色
   * @param userId
   * @return
   */
  List<AdminRoleDTO> getRolesByUserId(@Param("userId")String userId);

}

